<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="p-code" class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="p-code" data-rule="required" class="form-control" name="row[p_code]" placeholder="请输入项目编码" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="p_name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="p_name" data-rule="required" class="form-control" name="row[p_name]" placeholder="请输入项目名称" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="p_bid" class="control-label col-xs-12 col-sm-2">{:__('Buildname')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="p_bid" data-rule="required" class="form-control selectpicker" name="row[p_bid]">
                {foreach name="buildList" item="vo"}
                <option data-type="{$vo.id}" value="{$vo.id}" {in name="key" value=""}selected{/in}>{$vo.b_name}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="p_lid" class="control-label col-xs-12 col-sm-2">{:__('Levelname')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="p_lid" data-rule="required" class="form-control selectpicker" name="row[p_lid]">
                {foreach name="levelList" item="vo"}
                <option data-type="{$vo.id}" value="{$vo.id}" {in name="key" value=""}selected{/in}>{$vo.l_name}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="p_sid" class="control-label col-xs-12 col-sm-2">{:__('Stagename')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="p_sid" data-rule="required" class="form-control selectpicker" name="row[p_sid]">
                {foreach name="stageList" item="vo"}
                <option data-type="{$vo.id}" value="{$vo.id}" {in name="key" value=""}selected{/in}>{$vo.s_name}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="p_cid" class="control-label col-xs-12 col-sm-2">{:__('Catename')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="p_cid" data-rule="required" class="form-control selectpicker" name="row[p_cid]">
                {foreach name="cateList" item="vo"}
                <option data-type="{$vo.id}" value="{$vo.id}" {in name="key" value=""}selected{/in}>{$vo.name}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label for="p-code" class="control-label col-xs-12 col-sm-2">经度:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="p_long" data-rule="required" class="form-control" name="row[p_long]" placeholder="请输入经度" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="p-code" class="control-label col-xs-12 col-sm-2">纬度:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="p_lat" data-rule="required" class="form-control" name="row[p_lat]" placeholder="请输入纬度" type="text" value="">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Startdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="p_startdate" data-rule="required"  class="form-control datetimepicker"   placeholder="请选择计划日期(始)" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[p_startdate]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Enddate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="p_enddate" data-rule="required"  class="form-control datetimepicker"  placeholder="请选择计划日期(止)" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[p_enddate]" type="text" value="">
        </div>
    </div>




    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
